home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / redtop / redtop.txt < prev    next >
Text File  |  1994-11-29  |  4KB  |  88 lines

  1. The Screen Saver REDTOP.SCR is Freeware.
  2.  
  3. Requires: VBRUN300.DLL (not included) 
  4.           PICCLIP.VBX  (which is included).
  5. Author:   Rob McIntosh
  6. Comments: to Rob @ Compuserve (100413,1342)
  7. Version:  1.2
  8.  
  9. *** See Below for changes since First Release ***
  10.  
  11.     If all you want is a screen saver then copy RedTop.SCR 
  12. to your Windows directory and PicClip.vbx to your Windows\System 
  13. directory. You can then configure in in the Control Panel 
  14. Program.
  15.  
  16. For developers wanting to write their own Savers Read on....
  17.  
  18.     I have included the source code for RedTop to illustrate 
  19. how simple it is to create screen savers in Visual Basic. You 
  20. are welcome to use the code as a base for your own screen savers.
  21. The source code is fully commented and should be fairly simple to
  22. follow. I have tried to make it obvious where code is common to
  23. all screen savers and which is specific to RedTop.
  24.  
  25.     Please note that the Startup is via the main Sub in main.bas 
  26. This decides which form to show, the screen saver or the 
  27. configuration form. Screen Savers in general must be passed one 
  28. of two parameters; /c for the configuration form and /s for the 
  29. saver itself. For development this can be set in the Options
  30. menu of VB. Red Top maintains it's configuration details in the 
  31. Control.ini file in section [Screen Saver.Red Top]. The 
  32. password feature operates in exactly the same was as the 
  33. standard Savers. However the code for encrypting password is in 
  34. a Static library for C coders. As such it is not available 
  35. directly to vb programmers. To get around this problem I have 
  36. implemented my own, very simple, password routine which is kept 
  37. in the ini file section as above. The implications of this is 
  38. that changing the password in Red Top will only affect Red Top 
  39. and not any other Saver. The converse is also true. One last 
  40. thing to know is that when you "make exe file" your own Saver 
  41. make the filename myscrsav.SCR and the application title 
  42. "SCRNSAVE :My Screen Saver" Your Screen Saver will not opperate 
  43. correctly if you don't. The Application Title after the colon 
  44. is what it will be listed as under the Control Panel.
  45.  
  46.  
  47. Version History
  48.  
  49.  
  50. 1.0 (29-Sep-94) First Release
  51. 1.1 (14-Nov-94) Internal Version (Never Released)
  52. 1.2 (29-Nov-94) Enhancement Release
  53.  
  54. Fixed Password validation to Uppercase. All new passwords are
  55. converted to uppercase. The Validation now being insensitive 
  56. to case. Nb you may need to manually remove your old password
  57. after reinstalling this screen saver. Edit your control.ini file
  58. in the windows directory and change the following in the 
  59. [Screen Saver.Red Top] Section
  60. Password=
  61. PWprotected=0
  62. This will remove your old password.
  63.  
  64. Made the saver forms the Topmost form and System Modal. This now 
  65. acts the same way as all other screen savers. That is, if you 
  66. have the clock program as "Always on Top". Then it will not show 
  67. through the screen saver. When the screen saver is finally turned 
  68. off then the clock will revert to being "Always on Top". Making 
  69. the forms System modal also stops you from getting out of the
  70. saver by alt-tab or ctrl-Esc etc.
  71.  
  72. Added a timer to the Failed Password form so that it times 
  73. out after 30 seconds, just like the enter password form.
  74.  
  75. Added the Version field... 
  76. I didn't think I would need this :->
  77.  
  78. I remembered to include the Picclip.vbx control this time !
  79.  
  80. Finally,
  81. Thanks to all those who have commented on Redtop, I hope you find
  82. that this new release will resolve all of the "features" of the 
  83. first version.
  84.  
  85. Rob McIntosh 
  86. (Crewe, Cheshire, UK)
  87.  
  88.